﻿namespace Dapper.Common
{
    public class ExecuteResult<T>
    {
        public ExecuteResult()
        { }

        public ExecState ExecState { get; set; }
        public bool IsSuccess { get { return ExecState == ExecState.Success; } }
        public string Message { get; set; }
        public T Tag { get; set; }
    }

    public enum ExecState
    {
        Success = 0,
        Fail = 1,
        InnelException = 2
    }
}